//
// Created by Bili_TianX_Computer on 2021/7/10.
//

#ifndef SUPERMARKETMANAGESYSTEM_ADDUSERDIALOG_H
#define SUPERMARKETMANAGESYSTEM_ADDUSERDIALOG_H

#include <QWidget>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QFormLayout>
#include <QTableWidget>
#include <QCheckBox>
#include <QPushButton>
#include <QInputDialog>
#include <QLineEdit>
#include <QDebug>
#include <QDialog>
#include <QMessageBox>
#include <QDialogButtonBox>
#include "../../data/ProductDataManager.h"
#include "../../data/UserDataManager.h"
#include "../product/AddProductDialog.h"

class AddUserDialog : public QDialog
{
public:
    User *user;

    QLineEdit *nameEdit;
    QLineEdit *accountEdit;
    QLineEdit *passwordEdit;
    QCheckBox *adminButton;
    QDialogButtonBox *box;

    QFormLayout *editLayout;
    QVBoxLayout *widgetLayout;

    AddUserDialog();

public slots:

    void acceptedSlot();

    void rejectedSlot();
};


#endif //SUPERMARKETMANAGESYSTEM_ADDUSERDIALOG_H
